﻿using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;

namespace Scheduler.Model
{
    [PrimaryKey(nameof(Id))]
    public class RootEntityTkey<Tkey> where Tkey : IEquatable<Tkey>
    {
        /// <summary>
        /// Id
        /// 泛型主键Tkey
        /// </summary>
        [Comment("泛型主键Tkey")]
        [Required]
        public Tkey Id { get; set; }

    }
}